<div class="publications form">
<h2>Добавление записи</h2>
<h5>Тип добавляемой записи <?php echo $recordtypes[$recordtype_id]; ?></h5>
<?php 
	if ($recordtype_id == 1500)  {
	
	echo '<h6>Обязательно добавьте студентов соавторов на странице просмотра</h6>';
}			
?>
<?php echo $this->Form->create('Publication'); ?>
	<fieldset>
		<legend><?php echo __('Add Publication'); ?></legend>
		<?php 
			echo $this->form->hidden('recordtype_id', array('value' => $recordtype_id));
		?>		
		

<table width="100%" class="invisibletable">
<?php 
if ($recordtype_id == 1500) {
	echo $this->Form->hidden('with_students', array('value' => '1'));
} else {
	echo $this->Form->hidden('with_students', array('value' => ''));
}
?>

  <tr>
    <td width="15%" align="right">Тип публикации</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('publicationtype_id', array('label' => '', 'empty' => 'Выберите тип публикации')); ?>

	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Название конференции</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('event_name', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Название сборника конференции</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('event_book_name', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Том если есть</td>
    <td width="2%" align="right">&nbsp;</td>
    <td width="45%"><?php echo $this->Form->input('volume', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Издательство</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('publishing_house', array('label' => ''));  ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Сайт конференции</td>
    <td width="2%" align="right">&nbsp;</td>
    <td width="45%"><?php echo $this->Form->input('event_url', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Название публикации</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('publication_name', array('label' => ''));  ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Год публикации</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('publication_year', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Место издательства (Город)</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('publication_place', array('label' => ''));  ?></td>
  </tr>
  <tr>
    <td align="right">Страницы</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('pages', array('label' => ''));  ?></td>
  </tr>
</table>
	<?php 
		echo $this->Form->hidden('recstatus_id', array('value' => '1'));
	?>
	</fieldset>
	<br />
<?php echo $this->Form->end(__('Submit')); ?>
</div>		